package com.peak.spring.boot.api.entity;

import javax.persistence.MappedSuperclass;
import javax.persistence.Version;

import com.peak.spring.boot.api.constant.Constants;

@MappedSuperclass
public class OptimisticLockEntity extends DefaultStategyEntity {

	private static final long serialVersionUID = Constants.SERIAL_VERSION;

	private int version;

	@Version
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
}
